package com.lighting.smssystem.utils;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import java.io.IOException;

/**
 * @author leemaster
 * @Title: Long2StringConvert
 * @Package com.lighting.smssystem.utils
 * @Description:
 * @date 2019-06-0523:59
 */
public class Long2StringConvert extends JsonSerializer<Long> {
    @Override
    public void serialize(Long value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
        gen.writeString(value.toString());
    }
}
